;(function () {
  'use strict';
  angular.module('controllers.alarmDataAnalysis.faultOptimizationAnalysis',[])
    .controller('alaTimelinessAnalysisCtrl', alaTimelinessAnalysisCtrl);

  function alaTimelinessAnalysisCtrl($scope, CoreService,alaTimelinessAnalysisService,$mdDialog,COREDATA) {
    $scope.alaTimelinessAnalysis = alaTimelinessAnalysisService;
    alaTimelinessAnalysisService.initSelectMenu();   //初始化页面下拉框数据
    $scope.exportUrl = COREDATA.FORMPREFIX + 'faultOptimizationAnalysis/alaTimelinessAnalysis/exportExcelData';
    $scope.$on('$stateChangeSuccess', function(evt, state) {
      alaTimelinessAnalysisService.reset();
      $mdDialog.hide();
    });
  }
  alaTimelinessAnalysisCtrl.$inject = ['$scope','CoreService','alaTimelinessAnalysisService','$mdDialog','COREDATA'];
})();